﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MyStore.PresentationModel.Models.Users
{
    public class LogInModel
    {
        [Required(ErrorMessage = "请输入用户名")]
        public string UserName { get; set; }
        [Required(ErrorMessage = "请输入密码")]
        [StringLength(16, MinimumLength = 6, ErrorMessage = "密码长度需为6-16位，请重新输入")]
        public string Password { get; set; }
    }
}
